package com.jk.bgmainconsumer.controller;

import com.jk.bgmainconsumer.service.TicketService;
import com.jk.damaicommon.entity.TicketEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @描述
 * @参数 $
 * @返回值 $
 * @创建人 lgf
 * @创建时间 $
 * @修改人和其它信息
 */
@RestController
@RequestMapping("coupon")
public class TicketController {
    @Autowired
    private TicketService ticketService;

    @RequestMapping("couponList")
    public Object couponList(){
        return    ticketService.couponList();
    }

    @RequestMapping("add")
    public void add(TicketEntity ti){
        ticketService.add(ti);
    }
    //删除优惠券
    @RequestMapping("deleteCoupon")
    public void deleteCoupon(Integer id){
        ticketService.deleteCoupon(id);
    }


}
